const Mock = require('mockjs');
const List = [{
    id: 0,
    siteName: "若兮博客",
    path: "http://www.ruoqing.love",
    desc: "一个基于微服务架构的前后端分离博客系统"
},{
	id: 1,
	siteName: "博客园",
	path: "https://www.cnblogs.com",
	desc: "开发者的网上家园"
},{
	id: 1,
	siteName: "CSDN博客",
	path: "https://blog.csdn.net",
	desc: "专业IT技术发表平台"
}]
// const count = 15
//
// for (let i = 0; i < count; i++) {
//     List.push(Mock.mock({
//         id: '@increment',
//         siteName: "@cname",
//         path: "@url",
//         desc: "@ctitle(5,20)"
//     }))
// }

export default [
    {
        url: '/friend',
        type: 'get',
        response: config => {
            return {
                code: 20000,
                data: List
            }
        }
    }
]
